package com.example.tys.baseapplication.shell

class ShellCmd(private val cmd: String) {

    /**
     * shell 退出状态
     * 0:正常退出
     */
    var execStatus: Int = -999

    /**
     * shell执行后输出
     */
    var outLines: Array<String>? = null


    fun toAvailableCmd(): String {
        return cmd
    }

    override fun toString(): String {
        return "ShellCmd(cmd='$cmd', execStatus=$execStatus, outLines=${outLines?.contentToString()})"
    }


}
